Get Transactions
The Get Transactions API enables to fetch and show the list of transactions.
Method: POST
{{URL}}/jsonrpc
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Payload Parameters
Parameter | Description |
---|---|
id Mandatory | String Unique ID of request Example – "1" |
method Mandatory | String Method Name Example – "VisaService.GetTransactions" |
params Mandatory | Object |
api Mandatory | Object |
credential Mandatory | String API credential provided by NetXD Example – "Basic cy5wYXJhbWVzd2FyYW4rMkBiYW5rY2J3Lm9yZzpUZXN0QDEyMzQ=" |
signature Mandatory | String Signature of the digitally signed payload Example – "MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA==" |
payload Mandatory | Object |
pageNo Optional | Number Current page number Example – 1 |
pageSize Optional | Number Number of records per page that can contain Example – 10 |
paymentId Optional | String Unique identifier of the payment helps to track transaction Example – "84214423" |
Status Optional | String Current status of the transaction Example – "PENDING" |
endToEndIdentification Optional | String ID that helps to trace the transaction Example – "R1708598119292" |
companyId Optional | String ID of the company associated with the transaction Example – "658bcbe121dc6c32ec0120a2" |
paymentMode Optional | String Mode of transaction Example – "SWIFT" |
transactionCredit Optional | String Whether the type of transaction is inbound or outbound Example – "OUT" |
fromDate Optional | String Date and time of the transaction was initiated Example – "2024-02-18" |
toDate Optional | String Date and time of the transaction was completed Example – "2024-03-01" |
- cURL
- C#
- Go
- NodeJs
curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"id":"1","method":"VisaService.GetTransactions","params":{"api":{"credential":"Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5","signature":"MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="},"payload":{"pageNo":1,"pageSize":10,"paymentId":"84214423","status":"PENDING","endToEndIdentification":"R1708598119292","companyId":"658bcbe121dc6c32ec0120a2","paymentMode":"SWIFT","transactionCredit":"OUT","fromDate":"2024-02-18","toDate":"2024-03-01"}}}'
var options = new RestClientOptions("{{URL}}/jsonrpc")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("", Method.Post);
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@" ""id"": ""1"",
" + "\n" +
@" ""method"": ""VisaService.GetTransactions"",
" + "\n" +
@" ""params"": {
" + "\n" +
@" ""api"": {
" + "\n" +
@" ""credential"": ""Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5"",
" + "\n" +
@" ""signature"": ""MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA==""
" + "\n" +
@" },
" + "\n" +
@" ""payload"": {
" + "\n" +
@" ""pageNo"": 1,
" + "\n" +
@" ""pageSize"": 10,
" + "\n" +
@" ""paymentId"": ""84214423"",
" + "\n" +
@" ""status"": ""PENDING"",
" + "\n" +
@" ""endToEndIdentification"": ""R1708598119292"",
" + "\n" +
@" ""companyId"": ""658bcbe121dc6c32ec0120a2"",
" + "\n" +
@" ""paymentMode"": ""SWIFT"",
" + "\n" +
@" ""transactionCredit"": ""OUT"",
" + "\n" +
@" ""fromDate"": ""2024-02-18"",
" + "\n" +
@" ""toDate"": ""2024-03-01""
" + "\n" +
@" }
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "{{URL}}/jsonrpc"
method := "POST"
payload := strings.NewReader(`{`+"
"+`
"id": "1",`+"
"+`
"method": "VisaService.GetTransactions",`+"
"+`
"params": {`+"
"+`
"api": {`+"
"+`
"credential": "Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5",`+"
"+`
"signature": "MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="`+"
"+`
},`+"
"+`
"payload": {`+"
"+`
"pageNo": 1,`+"
"+`
"pageSize": 10,`+"
"+`
"paymentId": "84214423",`+"
"+`
"status": "PENDING",`+"
"+`
"endToEndIdentification": "R1708598119292",`+"
"+`
"companyId": "658bcbe121dc6c32ec0120a2",`+"
"+`
"paymentMode": "SWIFT",`+"
"+`
"transactionCredit": "OUT",`+"
"+`
"fromDate": "2024-02-18",`+"
"+`
"toDate": "2024-03-01"`+"
"+`
}`+"
"+`
}`+"
"+`
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': '{{URL}}',
'path': '/jsonrpc',
'headers': {
'Content-Type': 'application/json'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({
"id": "1",
"method": "VisaService.GetTransactions",
"params": {
"api": {
"credential": "Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5",
"signature": "MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="
},
"payload": {
"pageNo": 1,
"pageSize": 10,
"paymentId": "84214423",
"status": "PENDING",
"endToEndIdentification": "R1708598119292",
"companyId": "658bcbe121dc6c32ec0120a2",
"paymentMode": "SWIFT",
"transactionCredit": "OUT",
"fromDate": "2024-02-18",
"toDate": "2024-03-01"
}
}
});
req.write(postData);
req.end();
Body
{
"id": "1",
"method": "VisaService.GetTransactions",
"params": {
"api": {
"credential": "Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5",
"signature": "MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="
},
"payload": {
"pageNo": 1,
"pageSize": 10,
"paymentId": "84214423",
"status": "PENDING",
"endToEndIdentification": "R1708598119292",
"companyId": "658bcbe121dc6c32ec0120a2",
"paymentMode": "SWIFT",
"transactionCredit": "OUT",
"fromDate": "2024-02-18",
"toDate": "2024-03-01"
}
}
}
Response: 201
Response Parameters
Parameter | Description |
---|---|
jsonrpc | String JSON RPC VERSION Example – "2.0" |
result | Object |
totalElements | Number Total number of elements or transactions Example – 1 |
transactions | Array |
id | String Unique ID of transaction Example – "65df3b29bc2422fb17c9754a" |
postingDate | String Transaction initiated date and time Example – "2024-02-28T13:54:49.606Z" |
status | String Status of transaction Example – "PENDING" |
referenceNumber | String Reference number of transaction Example – "3534tt12222r44b4x9nrtr1681" |
debtorAgentBid | Number Bank ID of debtor bank or financial institution Example – "12345678" |
debtorAgentBic | String Bank Identifier Code of debtor bank or financial institution Example – "PNCBAT40" |
debtorEnterpriseId | String Unique identifier of the debtor's enterprise Example – "V-USA-EUR-10080373-100000001-001" |
debtorAccountNumber | String Account number of debtor Example – "123132" |
debtorName | String Name of the debtor Example – "ABC" |
creditorEnterpriseId | String Unique identifier of the creditor's enterprise Example – "V-GBR-USD-081302633-USABA-100914939-001" |
creditorAccountNumber | String Account number of creditor Example – "2342342" |
instructedCurrency | String Currency of transaction Example – "USD" |
instructedAmount | Number Amount of transaction Example – 1.1 |
visaresponse | Object |
paymentId | String Unique ID of the payment helps to track transaction Example – "45268341" |
structuredRemittance | Null Structured remittance information related to payment Example – null |
customerOrgName | String Customer organisation name that initiated transaction Example – "ABC" |
bankName | String Name of the beneficiary bank Example – "XYZ" |
riskScore | String Level of risk associated with the transaction Example – "Disabled" |
paymentMode | String Mode of transaction Example – "API" |
nameScreening | Object |
watchListStatus | String Status of watchlist Example – "Disabled" |
validatePayment | Object |
validateStatus | String Status of transaction validation Example – "FAILED" |
id | String Unique ID of request Example – "1" |
{
"jsonrpc": "2.0",
"result": {
"totalElements": 1,
"transactions": [
{
"id": "65df3b29bc2422fb17c9754a",
"postingDate": "2024-02-28T13:54:49.606Z",
"status": "PENDING",
"referenceNumber": "3534tt12222r44b4x9nrtr1681",
"debtorAgentBid": 12345678,
"debtorAgentBic": "PNCBAT40",
"debtorEnterpriseId": "V-USA-EUR-10080373-100000001-001",
"debtorAccountNumber": "123132",
"debtorName": "ABC",
"creditorEnterpriseId": "V-GBR-USD-081302633-USABA-100914939-001",
"creditorAccountNumber": "2342342",
"instructedCurrency": "USD",
"instructedAmount": 1.1,
"visaresponse": {
"paymentId": "45268341"
},
"structuredRemittance": null,
"customerOrgName": "ABC",
"bankName": "XYZ",
"riskScore": "Disabled",
"paymentMode": "API",
"nameScreening": {
"watchListStatus": "Disabled"
},
"validatePayment": {
"validateStatus": "FAILED"
}
}
]
},
"id": "1"
}